import React, { Component } from 'react';

import eventBus from './evt';

class Child2 extends Component {
    render() {
        return (
            <div>
                child2
            </div>
        );
    };
    getdata(data) {
        console.log(data);
    }
    componentDidMount() {
        eventBus.on('transfer', this.getdata)
    }
}

export default Child2;
